import java.util.ArrayList;
import java.util.Comparator;
import java.util.function.Consumer;
import java.util.function.Function;

public class TestDemo {

    public static void main(String[] args) {
        MyInterface myInterface = () -> "hello";


        System.out.println(myInterface.test());

        Comparator<String> stringComparator = String::compareTo;

        Consumer<String> consumer = System.out::println;

        ArrayList<String> strings = new ArrayList<>();
        strings.forEach(System.out::println);

        Function<String, Integer> function = new Function<String, Integer>() {

            @Override
            public Integer apply(String s) {
                return null;
            }
        };

        MyMethod method = System.out::println;

        method.testMethod(1.1231);


    }
}
